export function getCurrentAuthority() {
  return ['user'];
}

export function check(authority) {
  const current = getCurrentAuthority();
  return current.some(item => {
    authority.includes(item);
  });
}

export function isLogin() {
  const current = getCurrentAuthority();
  // console.log(current && current[0] !== "guest",1)
  return current && current[0] !== 'guest';
}
